DGB Phase A: embedded P2P + mempool (#82) - #93
Merged
Conversation
Phase A (#82) leaf deps for the embedded P2P+mempool layer. 1:1 mirror of src/impl/btc/coin (DGB is structurally BTC-shaped, non-MWEB; Scrypt PoW divergence lives in header_chain.hpp). block.hpp carries the multi-algo note: the version field encodes the mining algo but the 80-byte header layout is single-format and algo-agnostic; algo selection is read in header_chain, not in (de)serialization. node_interface.hpp restores the members the Path-A stub deferred (new_tx/new_headers/full_block/txidcache/known_txs), now that the types exist.
Phase A (#82). 1:1 mirror of src/impl/btc/coin (non-MWEB). SegWit/wtxid short-IDs apply (DGB activated SegWit). No coin-specific magic/consensus constants in this layer.
Phase A (#82). 1:1 mirror of src/impl/btc/coin (non-MWEB) speaking the DigiByte Core wire protocol; Scrypt-only. Two P2P-handshake constants carried from BTC are flagged TODO(M3) for reconciliation vs DigiByte Core params: protocol_version (70016) and advertised port (8333 -> DGB mainnet 12024). Neither is consensus. dgb_coin CMake lists the new files but stays unreferenced by add_subdirectory() pending the ci-steward OBJECT-lib wiring.
Flip per OBJECT-lib convention: register src/impl/dgb at top level and enable the coin subdir under COIN_DGB. dgb_coin now builds standalone (-DCOIN_DGB=ON); libdgb_coin.a links clean, 0 errors. daemon/test stay commented (M3).
frstrtr
marked this pull request as ready for review
June 14, 2026 07:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase A of the DGB→LTC-parity embedded port (#82): mirrors the LTC embedded coin layer into
src/impl/dgb/coin/(p2p_node, p2p_connection, p2p_messages, mempool), Scrypt-only, per-coin isolated. Rebased on current master (c67fbc1); 11 files;dgb_coinwired via add_subdirectory (f992d95). Builds clean (0 errors) per ci-steward. DRAFT / held for operator. Phase B (pool + share layer + pillars) follows separately.